<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<style>
			td,th{
				width: 200px;
				text-align: center;
			}
		</style>
		<script src="jquery-3.5.1.min.js"></script>
		<script>
			//http://localhost:8080/sina/US/gb_baba,gb_pdd,gb_aapl,gb_jd,gb_tsla,gb_ntes,gb_bidu,gb_bynd,gb_nio,gb_ba,gb_iq,gb_bili,gb_amzn
			function flushTable(){
				$.get("http://localhost:8080/sina/US/gb_baba,gb_pdd,gb_aapl,gb_jd,gb_tsla,gb_bynd,gb_nio,gb_ba,gb_amzn,gb_ntes,gb_nflx,gb_roku,,gb_bidu,gb_bili,gb_xpev,gb_intc,gb_bb,gb_gme,gb_futu,gb_gld,gb_mrna",function(data,status){
					var tbody = $("#tbody");
					tbody.empty();
					for (var i = 0; i < data.length; i++) {
						tbody.append("<tr><td>"+data[i].stockName+"</td><td>"+data[i].unitTurnoverRatio+"</td></tr>")
					}
				});
			}
			$(document).ready(function(){
				flushTable()
				setInterval("flushTable()",5000);
			})
		</script>
	</head>
	<body>
		<h1>苹果，阿里，特斯拉，蔚来，小鹏，网易，理想，Moderna</h1>
		<table>
			<thead>
				<tr>
					<th>股票名称</th>
					<th>量比</th>
				</tr>
			</thead>
			<tbody id="tbody">
			</tbody>
		</table>
	</body>
</html>